package com.atguigu.springcloud;

import com.atguigu.customribbon.CustomRibbonConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author horay
 * @category Class description
 * @email horay_hyc@qq.com
 * @date 2018/6/9 8:09
 */
@EnableEurekaClient
@SpringBootApplication
@RibbonClients(defaultConfiguration = CustomRibbonConfiguration.class)
@EnableFeignClients(basePackages= {"com.atguigu.springcloud"})
@ComponentScan("com.atguigu.springcloud")
public class MicroserviceCloudApplication {

    public static void main(String[] args) {
        SpringApplication.run(MicroserviceCloudApplication.class, args);
    }

}
